<%-- 
    Document   : link
    Created on : 2016-9-6, 21:12:15
    Author     : 52461
--%>

<%@page import="com.cxhd.pacs.DataConfig"%>
<%@page import="com.google.gson.Gson"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%
//String path = request.getContextPath();   
//String basePath = request.getScheme()+"://" +request.getServerName()+":" +request.getServerPort()+path+"/" ; 
////System.out.println(basePath+"------------------"+request.getMethod()+"----"+request.getPathInfo()+"---"+request.getRequestURL());
//%>   

<script>
    function parseJson(str) {
        str = str.replace('"{', "{");
         str = str.replace('}"', "}");

        return JSON.parse(str);
    }

//    var str = '{"birthday":"1990-07-27","gender":"男","hospital_fk":"1031","department_name":"内科","ch_name":"超级管理员","uuid":"23EC030A6F2E42FAB0150FBA1B4C0999","job_level_name":"其他","phone":"18565758857","hospital_code":"{\"hospital_code\":\"CX0712131CN2968\"}","hospital_name":"施甸县中医医院","department_fk":"1043","username":"admin","cxhd_id":""}'.replace("\\",""));
//    console.log(userInfo);
//     var config = JSON.parse('{"smsurl":"222.219.119.189:10219","centerHospitalCode":"CX0712131CN2968","hospitalName":"施甸中医院","localUrl":"http://weixin.sdxzyyy.com:10218","smsflag":"true","videoUrl":"https://222.219.119.189:19888/vroom3.html?","cacheFlag":"true","systemName":"昆明恒辰科技有限公司","zjurl":"http://weixin.sdxzyyy.com/guahao/s/referral/mini_send?host_id\u003d","loginUrl":"http://weixin.sdxzyyy.com","cachePath":"2222222222","IDDate":"20170301@438","pluginList":"plugin_lis_data","dicomServerPath":"C:/data/DCMServer/VamosDCMServer.exe","dicomServerUrl":"222.219.119.189"}';
    var userInfo = parseJson('<%=new Gson().toJson(request.getSession().getAttribute("CX_JSESSION_USER"))%>');
    console.log(userInfo);
    
    var config = JSON.parse('<%=new Gson().toJson(DataConfig.getInstance().getConfig())%>');
    console.log(config);

</script>
